#include <iostream>
#include <stdio.h>

class AA{
public:	
	AA(int aa)
	{
		this->aa=aa;
	}
	void prtA()
	{
		printf("aaaaaa  %d\n",aa);
	}
protected:
	int aa;
};
	
class BB{
public:
	BB(int bb)
	{
		this->bb=bb;
	}
	void prtB()
	{
		printf("bbbbbb  %d\n",bb);
	}
protected:
	int bb;
};

class CC:public AA,public BB
{
public:
	CC(int aa,int bb,int cc):AA(0),BB(0)
	{
		this->aa=aa;
		this->bb=bb;
		this->cc=cc;
	}
	void prtC()
	{
		printf("ccccc  %d %d %d\n",aa,bb,cc);
	}
protected:
	int cc;
};
	
int main()
{
	AA a(10);
	BB b(20);
	CC c(520,13,14);
	a.prtA();
	b.prtB();
	c.prtC();	

	return 0;
}
